/*
 * @Author: your name
 * @Date: 2021-04-09 16:20:11
 * @LastEditTime: 2021-04-19 14:15:27
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /pc-uc-admin/src/router/modules/rightsManage.js
 */
// 权限管理
import Layout from '@/layout'

const rightsManageRouter = {
  path: '/rightsManage',
  component: Layout,
  name: 'rightsManage',
  meta: {
    title: '权限管理',
    icon: 'icon-quanxianguanliweixuan',
    activeIcon: 'icon-quanxianguanlixuanzhong',
    roles: ['menu:menu700']
  },
  children: [
    {
      path: '/rightsManage/staffManage/',
      component: () => import('@/views/sys/rightsManage/staffManage'),
      name: 'staffManage',
      meta: { title: '员工管理', breadcrumb: false, roles: ['menu:menu701'] },
      children: [
        {
          path: 'staffList',
          component: () =>
            import('@/views/sys/rightsManage/staffManage/staffList.vue'),
          name: 'staffList',
          meta: { title: '员工管理', pname: 'rightsManage' }
        }
      ]
    },
    {
      path: '/rightsManage/roleManage/',
      component: () => import('@/views/sys/rightsManage/roleManage'),
      name: 'roleManage',
      meta: { title: '角色管理', breadcrumb: false, roles: ['menu:menu702'] },
      children: [
        {
          path: 'roleList',
          component: () =>
            import('@/views/sys/rightsManage/roleManage/roleList.vue'),
          name: 'roleList',
          meta: { title: '角色管理', pname: 'rightsManage' }
        }
      ]
    },
    {
      path: '/rightsManage/departManage/',
      component: () => import('@/views/sys/rightsManage/departManage'),
      name: 'departManage',
      meta: { title: '部门管理', breadcrumb: false, roles: ['menu:menu703'] },
      children: [
        {
          path: 'departList',
          component: () =>
            import('@/views/sys/rightsManage/departManage/departList.vue'),
          name: 'departList',
          meta: { title: '部门管理', pname: 'rightsManage' }
        }
      ]
    },
    {
      path: '/rightsManage/menuManage/',
      component: () => import('@/views/sys/rightsManage/menuManage'),
      name: 'menuManage',
      meta: { title: '菜单管理', breadcrumb: false, roles: ['menu:menu704'] },
      children: [
        {
          path: 'menuList',
          component: () =>
            import('@/views/sys/rightsManage/menuManage/menuList.vue'),
          name: 'menuList',
          meta: { title: '菜单管理', pname: 'rightsManage' }
        }
      ]
    },
    {
      path: '/rightsManage/channelManage/',
      component: () => import('@/views/sys/rightsManage/channelManage'),
      name: 'channelPlaceManage',
      meta: { title: '渠道管理', breadcrumb: false, roles: ['menu:menu708'] },
      children: [
        {
          path: 'channelManage',
          component: () =>
            import('@/views/sys/rightsManage/channelManage/channelManage.vue'),
          name: 'channelTwoManage',
          meta: { title: '渠道管理', pname: 'rightsManage' }
        }
      ]
    },
    {
      path: '/rightsManage/dictionaryManage/',
      component: () => import('@/views/sys/rightsManage/dictionaryManage'),
      name: 'dictionaryManage',
      meta: { title: '字典管理', breadcrumb: false, roles: ['menu:menu705'] },
      children: [
        {
          path: 'dictionaryList',
          component: () =>
            import('@/views/sys/rightsManage/dictionaryManage/dictionaryList.vue'),
          name: 'dictionaryList',
          meta: { title: '字典管理', pname: 'rightsManage' }
        }
      ]
    },
    {
      path: '/rightsManage/appHistoryManage/',
      component: () => import('@/views/sys/rightsManage/appHistoryManage'),
      name: 'appHistoryManage',
      meta: {
        title: 'App历史版本',
        breadcrumb: false,
        roles: ['menu:menu706']
      },
      children: [
        {
          path: 'appHistoryVersion',
          component: () =>
            import(
              '@/views/sys/rightsManage/appHistoryManage/appHistoryVersion.vue'
            ),
          name: 'appHistoryVersion',
          meta: { title: 'App历史版本', pname: 'rightsManage' }
        }
      ]
    },
    {
      path: '/rightsManage/appLatestManage/',
      component: () => import('@/views/sys/rightsManage/appLatestManage'),
      name: 'appLatestManage',
      meta: {
        title: 'App最新版本',
        breadcrumb: false,
        roles: ['menu:menu707']
      },
      children: [
        {
          path: 'appLatestVersion',
          component: () =>
            import('@/views/sys/rightsManage/appLatestManage/appLatestVersion.vue'),
          name: 'appLatestVersion',
          meta: { title: 'App最新版本', pname: 'rightsManage' }
        }
      ]
    },
    {
      path: '/rightsManage/requestionManage/',
      component: () => import('@/views/sys/rightsManage/requestionManage'),
      name: 'requestionManage',
      meta: { title: '问卷管理', breadcrumb: false, roles: ['menu:menu709'] },
      children: [
        {
          path: 'requestionList',
          component: () =>
            import('@/views/sys/rightsManage/requestionManage/requestionList.vue'),
          name: 'requestionList',
          meta: { title: '问卷列表', pname: 'rightsManage' }
        },
        {
          path: 'updateRequest',
          component: () =>
            import('@/views/sys/rightsManage/requestionManage/updateRequest.vue'),
          name: 'updateRequest',
          hidden: true,
          meta: { title: '编辑问卷', pname: 'rightsManage' }
        }
      ]
    }
  ]
}

export default rightsManageRouter
